package com.spzx.channel.controller;

import com.spzx.common.core.web.page.TableDataInfo;
import com.spzx.product.api.domain.SkuQuery;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.spzx.channel.service.ListService;

/**
 * @author Haoran Sun
 * @since 2024/07/24
 */
@Tag(name = "商品列表管理")
@RestController
@RequestMapping("/list")
public class ListController {

    @Resource
    private ListService listService;

    @Operation(summary = "获取sku列表")
    @GetMapping("/skuList/{pageNum}/{pageSize}")
    public TableDataInfo skuList(
            @PathVariable("pageNum") Integer pageNum,
            @PathVariable("pageSize") Integer pageSize,
            SkuQuery skuQuery
    ){
        return listService.skuList(pageNum, pageSize, skuQuery);
    }



}
